home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / demos / VisualAge for Java 2.0 Entry / setup / data1.cab / ide-e / IDE / cache / 1CQZW5X (.txt) < prev    next >
Encoding:
Java Class File  |  1998-09-16  |  1.4 KB  |  35 lines

  1. package java.util;
  2.  
  3. import java.io.IOException;
  4. import java.io.InputStream;
  5.  
  6. public class PropertyResourceBundle extends ResourceBundle {
  7.    private Properties lookup = new Properties();
  8.  
  9.    public PropertyResourceBundle(InputStream stream) throws IOException {
  10.       this.lookup.load(stream);
  11.    }
  12.  
  13.    public Enumeration getKeys() {
  14.       Enumeration result = null;
  15.       if (super.parent != null) {
  16.          Enumeration myKeys = this.lookup.keys();
  17.          Enumeration parentKeys = super.parent.getKeys();
  18.          result = new 1(this, myKeys, parentKeys);
  19.       } else {
  20.          result = this.lookup.keys();
  21.       }
  22.  
  23.       return result;
  24.    }
  25.  
  26.    public Object handleGetObject(String key) {
  27.       Object obj = this.lookup.get(key);
  28.       return obj;
  29.    }
  30.  
  31.    static Properties access$lookup(PropertyResourceBundle var0) {
  32.       return var0.lookup;
  33.    }
  34. }
  35.